package com.ccit.order.repository;

import com.ccit.model.Order;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface OrderRepository extends MongoRepository<Order,String> {
    List<Order> findOrderByPhoneLike(String phone);
    List<Order> findOrderByTimeBetween(Date startTime,Date endTime);
}
